home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / c / stormamiga_lib-v45_00d / include / utime.h < prev   
C/C++ Source or Header  |  2000-02-28  |  838b  |  48 lines

  1. #ifndef UTIME_H
  2. #define UTIME_H
  3.  
  4. /*
  5. **          $VER: utime.h 1.3 (18.09.98)
  6. **             Includes Release 45.00
  7. **
  8. **    Copyright © 1996/2000 by CyberdyneSystems
  9. **
  10. **            written by Matthias Henze
  11. **               All Rights Reserved
  12. */
  13.  
  14. #ifndef STORMAMIGA_H
  15.   #include <stormamiga.h>
  16. #endif
  17. #ifndef _INCLUDE_TIME_H
  18.   #include <time.h>
  19. #endif
  20.  
  21. #ifdef __cplusplus
  22.   extern "C" {
  23. #endif
  24.  
  25. /*----- POSIX-functions -----*/
  26.  
  27. struct utimbuf
  28. {
  29.   time_t actime;  /* Access time */
  30.   time_t modtime; /* Modification time */
  31. };
  32.  
  33.  
  34. int utime (cchar *, const struct utimbuf *);
  35.  
  36. #ifdef __cplusplus
  37.   }
  38. #endif
  39.  
  40. #ifdef STORMAMIGA_UNIXPATH
  41.   __inline int utime_u (cchar *file, const struct utimbuf *timep)
  42.   {return utime        (file, timep); }
  43.  
  44.   #define utime(file, timep) utime_u(UnixToAmigaPath(file), timep)
  45. #endif
  46.  
  47. #endif /* UTIME_H */
  48.